package com.ruoyi.match.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.match.mapper.ChNoticeMapper;
import com.ruoyi.match.domain.ChNotice;
import com.ruoyi.match.service.IChNoticeService;

/**
 * 撮合公告Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-15
 */
@Service
public class ChNoticeServiceImpl implements IChNoticeService 
{
    @Autowired
    private ChNoticeMapper chNoticeMapper;

    /**
     * 查询撮合公告
     * 
     * @param id 撮合公告主键
     * @return 撮合公告
     */
    @Override
    public ChNotice selectChNoticeById(Integer id)
    {
        return chNoticeMapper.selectChNoticeById(id);
    }

    /**
     * 查询撮合公告列表
     * 
     * @param chNotice 撮合公告
     * @return 撮合公告
     */
    @Override
    public List<ChNotice> selectChNoticeList(ChNotice chNotice)
    {
        return chNoticeMapper.selectChNoticeList(chNotice);
    }

    /**
     * 新增撮合公告
     * 
     * @param chNotice 撮合公告
     * @return 结果
     */
    @Override
    public int insertChNotice(ChNotice chNotice)
    {
        return chNoticeMapper.insertChNotice(chNotice);
    }

    /**
     * 修改撮合公告
     * 
     * @param chNotice 撮合公告
     * @return 结果
     */
    @Override
    public int updateChNotice(ChNotice chNotice)
    {
        return chNoticeMapper.updateChNotice(chNotice);
    }

    /**
     * 批量删除撮合公告
     * 
     * @param ids 需要删除的撮合公告主键
     * @return 结果
     */
    @Override
    public int deleteChNoticeByIds(Integer[] ids)
    {
        return chNoticeMapper.deleteChNoticeByIds(ids);
    }

    /**
     * 删除撮合公告信息
     * 
     * @param id 撮合公告主键
     * @return 结果
     */
    @Override
    public int deleteChNoticeById(Integer id)
    {
        return chNoticeMapper.deleteChNoticeById(id);
    }
}
